package sgi.message;

import java.awt.image.BufferedImage;

@SuppressWarnings("serial")
/** message of inserting new row of image table with all the fields */
public class MessageImageAdd extends Message {
	private String CountImageID;
	private String Date;
	private String Location;
	private String Latitude;
	private String Longitude;
	private byte[] originalImage1;
	private byte[] originalImage2;
	private byte[] originalImage3;
	private byte[] originalImage4;
	private byte[] originalImage5;
	
	public MessageImageAdd(String Date,String Location, String Latitude, 
			String Longitude,byte[] originalImage1, byte[] originalImage2,
			byte[] originalImage3, byte[] originalImage4, byte[] originalImage5) 
	{
		super(null);
		
		setCountImageID("select MAX(imageid) from images ");
		setDate(Date);
		setLocation(Location);
		setLatitude(Latitude);
		setLongitude(Longitude);
		setOriginalImage1(originalImage1);
		setOriginalImage2(originalImage2);
		setOriginalImage3(originalImage3);
		setOriginalImage4(originalImage4);
		setOriginalImage5(originalImage5);
	}


	public String getCountImageID() {
		return CountImageID;
	}


	public void setCountImageID(String countImageID) {
		CountImageID = countImageID;
	}


	public String getDate() {
		return Date;
	}


	public void setDate(String date) {
		Date = date;
	}


	public String getLocation() {
		return Location;
	}


	public void setLocation(String location) {
		Location = location;
	}


	public String getLatitude() {
		return Latitude;
	}


	public void setLatitude(String latitude) {
		Latitude = latitude;
	}


	public String getLongitude() {
		return Longitude;
	}


	public void setLongitude(String longitude) {
		Longitude = longitude;
	}


	public byte[] getOriginalImage1() {
		return originalImage1;
	}


	public void setOriginalImage1(byte[] originalImage1) {
		this.originalImage1 = originalImage1;
	}


	public byte[] getOriginalImage2() {
		return originalImage2;
	}


	public void setOriginalImage2(byte[] originalImage2) {
		this.originalImage2 = originalImage2;
	}


	public byte[] getOriginalImage3() {
		return originalImage3;
	}


	public void setOriginalImage3(byte[] originalImage3) {
		this.originalImage3 = originalImage3;
	}


	public byte[] getOriginalImage4() {
		return originalImage4;
	}


	public void setOriginalImage4(byte[] originalImage4) {
		this.originalImage4 = originalImage4;
	}


	public byte[] getOriginalImage5() {
		return originalImage5;
	}


	public void setOriginalImage5(byte[] originalImage5) {
		this.originalImage5 = originalImage5;
	}
}
